package visao.windowBehavior;

import java.util.Properties;

import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

import com.jtattoo.plaf.mcwin.McWinLookAndFeel;

public class McWinLookAndFeelBehavior implements WindowBehavior {
	
	public McWinLookAndFeelBehavior() {
		aplicarModelo();
	}

	@Override
	public void aplicarModelo() {
		try {
			Properties props = new Properties();
			props.put("logoString", "Cooperativa Pirambu Digital");
			props.put("licenseKey", "Minha licensa");
			
			UIManager.setLookAndFeel("com.jtattoo.plaf.mcwin.McWinLookAndFeel");
			McWinLookAndFeel.setCurrentTheme(props);
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		} catch (InstantiationException e) {
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			e.printStackTrace();
		} catch (UnsupportedLookAndFeelException e) {
			e.printStackTrace();
		}
	}

}
